public class CourtStateBaseLine : AbstractCourtState
{
	public static CourtStateBaseLine instance;

	private CourtStateBaseLine()
	{
	}

	public static CourtStateBaseLine getInstance()
	{
		if (instance == null)
		{
			instance = new CourtStateBaseLine();
		}
		return instance;
	}

	public override void enter(Court owner)
	{
		base.enter(owner);
		if (owner.teamType_WillOffense == TeamType.COMPUTER)
		{
			owner.teamComputer.setIsOffense(_isOffense: true);
			owner.teamUser.setIsOffense(_isOffense: false);
			owner.teamComputer.setIsCrossHalfCourt(_isCrossHalfCourt: false);
			owner.teamUser.setIsCrossHalfCourt(_isCrossHalfCourt: false);
			owner.teamComputer.OnBaseLine(owner.posBaseLine);
			owner.teamUser.OnParaBaseLine();
		}
		else
		{
			owner.teamUser.setIsOffense(_isOffense: true);
			owner.teamComputer.setIsOffense(_isOffense: false);
			owner.teamUser.setIsCrossHalfCourt(_isCrossHalfCourt: false);
			owner.teamComputer.setIsCrossHalfCourt(_isCrossHalfCourt: false);
			owner.teamUser.OnBaseLine(owner.posBaseLine);
			owner.teamComputer.OnParaBaseLine();
		}
	}
}
